package com.woniu.car.service;


import com.woniu.car.common.ResponseEntity;
import com.woniu.car.exception.ParamException;
import com.woniu.car.exception.ServiceSException;
import com.woniu.car.domain.TGoods;
import com.baomidou.mybatisplus.extension.service.IService;

import com.woniu.car.param.AddGoodsParam;
import com.woniu.car.param.GroundingParam;
import com.woniu.car.param.ModifyGoodsParam;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * <p>
 * 商品基础表 服务类
 * </p>
 *
 * @author chestnuts
 * @since 2021-06-21
 */
public interface TGoodsService extends IService<TGoods> {

    ResponseEntity addGoods(AddGoodsParam addGoodsParam, MultipartFile file, Integer id) throws ServiceSException, IOException, ParamException;
//    ResponseEntity addGoods(AddGoodParam addGoodsParam, MultipartFile file, Integer id) throws GoodsNullException, IOException;


    ResponseEntity putGoods(ModifyGoodsParam modifyGoodsParam) throws ServiceSException;

    ResponseEntity groundGoods(GroundingParam groundingParam) throws ParamException;

    String uploadGoodsImg(MultipartFile file);

    ResponseEntity delGoods(Integer goodsId);

    ResponseEntity getGoods(Integer goodsId);

    ResponseEntity queryGoods(Integer gategoryId, Integer pageIdx);

    ResponseEntity pullGoods(Integer goodsId);

    ResponseEntity searchPutingGoods(String keyword);

    ResponseEntity queryAllGoods(Integer pageIndex, Long pageSize);
}
